import { View } from "../../../../mvc/core/View";
import { GlobalClass } from "../../../../../com/mui/core/GlobalClass";
import { UiHintIconView } from "../../uiIconBtn/UiHintIconView";
import { ChatManager } from "../../chat/chatPrivate/ChatManager";
type int = number;
//class BaseHintIcon
    
    export  class BaseHintIcon extends View
    {
        constructor(arg1: string)
        {
            super();
            this._hintIconBitmap = arg1;
            this.createChindren();
            this.buttonMode = true;
            return;
        }

        protected createChindren(): void
        {
            this._hintIcon = GlobalClass.getBitmap(this._hintIconBitmap);
            this.addChild(this._hintIcon);
            this.addEventListener(flash.events.MouseEvent.CLICK, this.onHintIconClickHandler);
            return;
        }

        protected onHintIconClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            return;
        }

        public resize(arg1: number=0, arg2: number=0): void
        {
            return;
        }

        public /* override */ show(arg1: int=0, arg2: int=0): void
        {
            UiHintIconView.instance.addHintIcon(this);
            return;
        }

        public /* override */ hide(): void
        {
            if (this.parent) 
            {
                UiHintIconView.instance.removeHintIcon(this);
            }
            return;
        }

        public showInChatView(): void
        {
            ChatManager.addHintIcon(this);
            return;
        }

        public hideInChatView(): void
        {
            ChatManager.removeHintIcon(this);
            return;
        }

        protected /* var */_hintIconBitmap: string;

        protected /* var */_hintIcon: Object /* flash.display.Bitmap */;
    }
